﻿@{
    ViewBag.Title = "personinfo";
    Layout = "~/Views/Shared/Student.cshtml";
}
<div class="larry-personal">
    <header class="larry-personal-tit">
        <span>个人信息</span>
    </header><!-- /header -->
    <div class="larry-personal-body clearfix">
        <form class="layui-form col-lg-5" action="" method="post">
            <div class="layui-form-item">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-block">
                    <input type="text" id="Text1" class="layui-input layui-disabled" disabled="disabled">
                
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">班级</label>
                <div class="layui-input-block">
                    <input type="text" id="Text2" class="layui-input layui-disabled" disabled="disabled">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">年龄</label>
                <div class="layui-input-block">
                    <input type="text" id="Text3" class="layui-input layui-disabled" disabled="disabled">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">专业</label>
                <div class="layui-input-block">
                    <input type="text" id="Text4" class="layui-input layui-disabled" disabled="disabled">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">系</label>
                <div class="layui-input-block">
                    <input type="text" id="Text5" class="layui-input layui-disabled" disabled="disabled">

                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-block">
                    <textarea id="TextArea1" class="layui-textarea layui-disabled"></textarea>
                </div>
            </div>
        </form>
    </div>
</div>
<script src="~/common/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
    $(function ()
    {
        var student = window.localStorage;      
        $("#Text1").val(student.getItem("stuname"));//用户名
        $("#Text2").val(student.getItem("stuclass"));//班级
        $("#Text3").val(student.getItem("stuage"));//年龄
        $("#Text4").val(student.getItem("major"));//专业
        $("#Text5").val(student.getItem("dapartment"));//系
        $("#TextArea1").val(student.getItem("note"));//备注
    })
</script>
